package com.tang.objectOriented.senior.static_;

public class StaticExercise01 {
    //编写一个main方法
    public static void main(String[] args) {
        Test test = new Test();
        test.main(args);
    }
}

class Test {
    static int count = 9;

    public void count() {
        System.out.println("count=" + (++count)); //10 11 11
        // 10 >>> count=9+1 >>> count=10
        // 11 >>> count=10+1 >>> count=11
        // 11
        //System.out.println("count=" + (count++)); //9 10 11
        //9  >>> count=9 ---> tmp =9+1 >>> count=tmp  count=10
        //10 >>> count=10 ---> tmp=10+1 >>> count=tmp  count=11
        //11
    }

    public static void main(String[] args) {
        new Test().count();

        new Test().count(); //10
        System.out.println(Test.count);    //11
    }
}